'Declaration
Public Overloads Shared Function ReplaceAsync(Of T As Class)( _ ByVal dataCollection As IDataCollection(Of T), _ ByVal index As Integer, _ ByVal item As T, _ Optional ByVal cancellationToken As CancellationToken _ ) As Task(Of Integer)
public static Task<int> ReplaceAsync<T>( IDataCollection<T> dataCollection, int index, T item, CancellationToken cancellationToken ) where T: class
Parameters
- dataCollection
- The data collection.
- index
- The index.
- item
- The item.
- cancellationToken
- The cancellation token.
Type Parameters
- T